/**************************************************************************/
/*                                                                        */
/* Copyright (c) Intson Technology Co.,Ltd.           */
/*  */
/*                                                                        */
/*                                                                        */
/*    created:    2009-4-9                                             */ 
/*    filename:   I8ShellApp.cpp                                          */ 
/*    author:     Derek Huang                                                  */  
/*    purpose:                                                            */ 
/*                                                                        */
/* ************************************************************************/
#include "iPODApp.h"

CiPODApp iPODApp;

CiPODApp::CiPODApp()
{
	m_pMainWin = NULL;
}
CiPODApp::~CiPODApp()
{
	CoUninitialize();	
}
BOOL CiPODApp::Init()
{
	CoInitializeEx(NULL, COINIT_MULTITHREADED );
	int cx,cy;
	cx = GetSystemMetrics(SM_CXSCREEN);
	cy = GetSystemMetrics(SM_CYSCREEN);
	m_pMainWin = new CiPODWnd();
	if( m_pMainWin )
	{
		if(m_pMainWin->Create(0, 0, cx, cy, 0, 0, 0, 0))
		{
			m_pMainWin->Show();
			return TRUE;
		}
		else
		{
			return FALSE;
		}	
	}
	else
	{
		return FALSE;
	}
	return CMzApp::Init();
	
	
}
